package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<User>{
    User findByUsername(@Param("username") String username);


    void insertUserRole(@Param("id") Integer id, @Param("roleIds") Integer[] roleIds);

    Integer[] selectUserRole(@Param("id") Integer id);

    void deleteUserRole(@Param("id") Integer id);
}
